home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / initsnb.zoo / init / makefile next >
Encoding:
Makefile  |  1992-10-26  |  2.5 KB  |  113 lines

  1. # This is where mint.prg sits, init.prg should be in the same place unless
  2. #   you have directed mint to look elsewhere using a mint.cnf file.
  3.  
  4. MINTDIR=/c/mint
  5.  
  6. # This is where all your executables are held.
  7.  
  8. BINDIR=/bin
  9. USRBINDIR=/usr/bin
  10.  
  11. # This is the directory which will be come /etc using a symbolic link set up
  12. # in your mint.cnf. For OS's other than MiNT leave it as /etc.
  13.  
  14. ETCDIR=/etc
  15.  
  16. # This is the extention given to executables which will be called from the
  17. # command line.
  18.  
  19. TTPEXT=.ttp
  20.  
  21. # This is the extention given to init, MiNT expects it to be .prg.
  22.  
  23. PRGEXT=.prg
  24.  
  25. SHELL=/bin/sh.ttp
  26. MAKE=/bin/make.ttp
  27. CFLAGS=-O -mbaserel -mpcrel
  28.  
  29. all: lib init login getty who finger ac wlogin last write
  30.  
  31. # If you have mntlib10 or below or are compiling this for an OS other than
  32. # MiNT, uncomment the line containing (cd lib ; $(MAKE))
  33.  
  34. lib: lib/libusers.a
  35.  
  36. lib/libusers.a: lib/utmp.c lib/wtmp.c
  37.     (cd lib ; $(MAKE))
  38.  
  39. init: init/init$(PRGEXT)
  40.  
  41. init/init$(PRGEXT): init/init.c init/getttyent.c
  42.     ( cd init ; $(MAKE) )
  43.  
  44. login: login/login$(TTPEXT)
  45.  
  46. login/login$(TTPEXT): login/login.c login/fcrypt.c
  47.     ( cd login ; $(MAKE) login.ttp )
  48.     ( cd login ; $(MAKE) passwd.ttp )
  49.  
  50. getty: getty/getty
  51.  
  52. getty/getty: getty/getty.c
  53.     ( cd getty ; $(MAKE) )
  54.  
  55. who: who/who$(TTPEXT)
  56.  
  57. who/who$(TTPEXT): who/who.c
  58.     ( cd who ; $(MAKE) )
  59.  
  60. last: last/last$(TTPEXT)
  61.  
  62. last/last$(TTPEXT): last/last.c
  63.     ( cd last ; $(MAKE) )
  64.  
  65. finger: finger/finger$(TTPEXT)
  66.  
  67. finger/finger$(TTPEXT): finger/finger.c
  68.     ( cd finger ; $(MAKE) )
  69.  
  70. write: write/write$(TTPEXT)
  71.  
  72. write/write$(TTPEXT): write/write.c
  73.     ( cd write ; $(MAKE) )
  74.  
  75. ac: ac/ac$(TTPEXT)
  76.  
  77. ac/ac$(TTPEXT): ac/ac.c
  78.     ( cd ac ; $(MAKE) )
  79.  
  80. wlogin: wlogin/wlogin$(TTPEXT)
  81.  
  82. wlogin/wlogin$(TTPEXT): wlogin/wlogin.c wlogin/makefile
  83.     ( cd wlogin ; $(MAKE) )
  84.  
  85. sh: sh/sh.ttp
  86.  
  87. sh/sh.ttp:
  88.     ( cd sh ; $(MAKE) )
  89.  
  90. install:
  91.     cp init/init.prg $(MINTDIR)/init$(PRGEXT)
  92.     cp login/login.ttp $(BINDIR)/login$(TTPEXT)
  93.     cp login/passwd.ttp $(BINDIR)/passwd$(TTPEXT)
  94.     cp getty/getty $(ETCDIR)/getty
  95.     cp who/who.ttp $(USRBINDIR)/who$(TTPEXT)
  96.     cp last/last.ttp $(USRBINDIR)/last$(TTPEXT)
  97.     cp finger/finger.ttp $(USRBINDIR)/finger$(TTPEXT)
  98.     cp write/write.ttp $(USRBINDIR)/write$(TTPEXT)
  99.     cp ac/ac.ttp $(USRBINDIR)/ac$(TTPEXT)
  100.     cp wlogin/wlogin.ttp $(USRBINDIR)/wlogin$(TTPEXT)
  101.     cp sh/sh.ttp $(BINDIR)/sh$(TTPEXT)
  102.  
  103. man:
  104.     cp man/ac.8 /usr/man/man8
  105.     cp man/getty.8 /usr/man/man8
  106.     cp man/gettytab.5 /usr/man/man5
  107.     cp man/wlogin.1 /usr/man/man1
  108.  
  109. clean:
  110.     -$(BINDIR)/rm init/*.o
  111.     -$(BINDIR)/rm login/*.o
  112.     -$(BINDIR)/rm getty/*.o
  113.